#include "startmenu.h"
#include "ui_startmenu.h"
#include "widget.h"
startMenu::startMenu(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::startMenu)
{
    ui->setupUi(this);
    this->setWindowTitle("贪吃蛇大作战");
}

startMenu::~startMenu()
{
    delete ui;
}

void startMenu::on_singlePlayer_Button_clicked()
{
    this->close();
    Widget *gamewidget = new Widget;
    gamewidget->show();
}


void startMenu::on_multipePlayer_button_clicked()
{
    ;
}


void startMenu::on_quit_Button_clicked()
{
    this->close();
}

